Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Rspec Stories Failing

#19

Hello,

I have just installed the restful authentication plugin with rspec and activation. The specs work. I ran the stories and I managed to get pasted the first few failures by using this posting: http://www.ruby-forum.com/topic/...

I was not able to fix the last one on the list because it seems that the stories have changed since that post. Here is the error I'm getting:


FAILURES:
    1) Logging in (Anonymous user can log in and be remembered) FAILED
    Spec::Expectations::ExpectationNotMetError: expected "4", got "14" (using .eql?)
    /Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:98:in `$actor session store should have $attributes'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `each'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `$actor session store should have $attributes'
stories/all.rb:2

    2) Logging in (Log-in with bogus info should fail until it doesn't) FAILED
    Spec::Expectations::ExpectationNotMetError: expected "4", got "16" (using .eql?)
    /Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:98:in `$actor session store should have $attributes'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `each'
/Users/brain/Sites/cauta_mock/stories/steps/ra_response_steps.rb:96:in `$actor session store should have $attributes'
stories/all.rb:2

I also noticed that the got "number" (in this case 14 and 16) changes everytime the code is run with an increment of 14. Please let me know how can this be fixed. Thank you

Reported by Andrei Erdoss · September 26th, 2008 @ 09:48 AM

State: new
Milestone: none
Assigned to: mrflip mrflip

Activity

  1. Jeraimee
    Jeraimee

    Getting this same scenario. Same two failures and same +14 user id issue.

    July 2nd, 2009 @ 11:15 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.